package com.leps.nq.bu.mapper;

import com.leps.nq.bu.entity.BuUserCust;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * (用户-客户)关系表 Mapper 接口
 * </p>
 *
 * @author hex
 * @since 2022-05-22
 */
@Mapper
public interface BuUserCustMapper extends BaseMapper<BuUserCust> {

    int insertBatch(@Param("userId") Long userId, @Param("custIds") List<Integer> custIds);

    int deleteByUserId(Long userId);
}
